package com.itcam.interview.pro00.disignmodel.chain;

// 2. 创建具体处理者类
// 组长
class TeamLeader extends Approver {
    @Override
    public void processRequest(int days) {
        if (days <= 1) {
            System.out.println("组长批准了 " + days + " 天的请假申请。");
        } else if (nextApprover != null) {
            nextApprover.processRequest(days);
        }
    }
}